<?php 
    if($this->pageCount > 1)
    {
        if(isset($this->previous))
        {
            echo '<a class="button_pagi" href="' . $this->baseUrl('/admincp/user/search/page/') . $this->previous . $this->currentUrl . '">Trước</a>';
        }
        foreach($this->pagesInRange as $page)
        {
            if($page != $this->current)
            {
                echo '<a class="button_pagi" href="' . $this->baseUrl('/admincp/user/search/page/') . $page . $this->currentUrl . '">' . $page . '</a>';
            }
            else
            {
                echo '<span class="button_pagi_current">' . $page . '</span>';
            }
        }
        if(isset($this->next))
        {
            echo '<a class="button_pagi" href="' . $this->baseUrl('/admincp/user/search/page/') . $this->next . $this->currentUrl . '">Tiếp</a>';
        }
    }
